package com.bcmusic.pay.feign;
import entity.Result;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;

@FeignClient("pay")
@RequestMapping("/pay")
public interface WeixinPayFeign {

    @GetMapping("/closePay")
    public Result closePay(@RequestParam Integer orderId)throws Exception;

    @GetMapping("/create/native")
    public Result<Map> createNative(@RequestParam("orderId") String orderId,@RequestParam("money") String money);
}
